<?php

namespace App\Models\Article;

use App\Models\Common\CommonModel;
use App\Models\Rbac\GuardUser;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class ArticleClassify extends CommonModel
{
    use HasFactory;
    protected $table = 'article_classify';

    public function getGuardUser() {
        return $this->hasOne(GuardUser::class,'id','guard_user_id');
    }

    public function getArticle() {
        return $this->hasMany(ArticleInfo::class,'classify_id','id');
    }



}
